package com.ruoyi.project.system.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysDiscount)实体类
 *
 * @author makejava
 * @since 2020-03-04 18:41:28
 */
public class SysDiscount extends BaseEntity{
    private static final long serialVersionUID = -95272446315382574L;

    /**
     * 状态 0-未使用 1-已使用
     */
    private Integer state;
    /**
     * 消费时间
     */
    private Date dissipate;


    /**
    * 红包id
    */
    private Long discountId;
    /**
    * 发布者id
    */
    private Long userId;
    /**
    * 商铺id
    */
    private Long deptId;
    /**
    * 红包总个数
    */
    private Integer total;
    /**
    * 红包名称
    */
    private String name;
    /**
    * 红包金额
    */
    private Double discount;
    /**
    * 红包剩余个数
    */
    private Integer num;
    /**
    * 满多少金额可以用
    */
    private Double price;
    /**
    * 过期时间
    */
    private Date expirationDate;


    public Long getDiscountId() {
        return discountId;
    }

    public void setDiscountId(Long discountId) {
        this.discountId = discountId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getDissipate() {
        return dissipate;
    }

    public void setDissipate(Date dissipate) {
        this.dissipate = dissipate;
    }
}